import request from "../../request";
import { type R, type DeepRequired } from "../../interface";
import { type AxiosRequestConfig } from "axios";

/**
 * 获取所有 Works 信息
 * /works
 */
export function getWorks(config?: AxiosRequestConfig) {
    return request.get<DeepRequired<R>>(`/works`, config);
}
